<!doctype html>
<html lang="en">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-rim-auto-match" content="none">
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-1.10.2.js"></script>
    <title>标详情</title>
</head>

<body>
<div class="photoBg" id="photoBg">
    <div class="photos">
        <img id="photos" width='100%' height='100%' src="" alt="">
    </div>
    <div class="photosText" id="photosText" >身  份  证:</div>
    <a class='pre' id='bgPre' href="javascript:;"></a>
    <a class='next' id='bgNext' href="javascript:;"></a>
    <div class="closeButton" id="closeButton"></div>
</div>
<div id="detail" class="detail">

    <h2 id="itemType" >关于车贷宝</h2>
    <div id="content" class="content" >
        <p ></p>
    </div>
    <div class="chedaibao" style="display: none">
        <h2>借款人信息</h2>
        <table class="detailTable">
            <tr><td><p>姓<span style="opacity:0">空格</span>名</p>：</td><td id="name"></td></tr>
            <tr><td><p>身份证号</p>：</td><td id="idcard"></td></tr>
            <tr><td><p>出  生  地</p>：</td><td id="province"></td></tr>
            <tr><td><p>居  住  地</p>：</td><td id="city"></td></tr>
        </table>
    </div>

    <h2 id="loadType"  >资产图片</h2>
    <table id='loadTypeContent' class="detailTable">
    </table>

    <div id="xuechebao"  style="display: none">
        <h2  id="cash_use">资金用途</h2>
        <table class="detailTable" >
            <tr><td  style='width:100%'>大学生驾校培训费</td></tr>
        </table>

        <h2 id="protect_way">保障措施</h2>
        <table class="detailTable" id="protect_wayList">
            <tr><td style='width:100%'>1. 合作机构担保无条件回购债权</td></tr>
            <tr><td style='width:100%'>2. 每笔投资都对应真实借款人</td></tr>
            <tr><td style='width:100%'>3. 驾校承担监管责任</td></tr>
            <tr><td style='width:100%'>4. 专款专用避免挪用</td></tr>
            <tr><td style='width:100%'>5. 100%适用于风险备付金保障</td></tr>
        </table>
    </div>

    <div id="cheshangbao"  style="display: none">
        <h2>资金用途</h2>
        <table class="detailTable">
            <tr><td id='loanUse' style='width:100%'></td></tr>
        </table>
    </div>


    <div class="pic_info" style="display: none">
        <h2  >多重安全审核</h2>
        <table class="picsTableTile"  >
            <tr><td>资料</td><td>审核情况</td><td>查看</td></tr>
        </table>
    </div>
    <h3 data-name="load" id="load" class="tableTitle" >借款人信息</h3>

    <table class="picsTable" id="loadList">
    </table>

    <h3 data-name="car" id="car" class="tableTitle"  >资产图片</h3>
    <table class="picsTable" id="carList">
    </table>

    <h3 data-name="money" id="money" class="tableTitle" >资产信息</h3>
    <table class="picsTable" id="moneyList">
    </table>

    <h3 data-name="money" id="other" class="tableTitle" >其它信息</h3>
    <table class="picsTable" id="otherList">
    </table>

    <h3 data-name="load" id="carCity" class="tableTitle"  >车城信息</h3>
    <table class="picsTable" id="carCityList">
    </table>

    <h3 data-name="car" id="gurrantee" class="tableTitle"  >担保信息</h3>
    <table class="picsTable" id="gurranteeList">
    </table>
    <h3></h3>

    <!--<div class="picArea">-->
    <!--<div id='leftButton' class="left" style="background: url(img/left.png) no-repeat;background-size: contain"></div>-->
    <!--<div id='rightButton' class="right" style="background: url(img/right.png) no-repeat;background-size: contain"></div>-->
    <!--<div class="picScrollBox">-->
    <!--<ul id="picScroll">-->
    <!--&lt;!&ndash;<li>1</li>&ndash;&gt;-->
    <!--&lt;!&ndash;<li>2</li>&ndash;&gt;-->
    <!--&lt;!&ndash;<li>3</li>&ndash;&gt;-->
    <!--&lt;!&ndash;<li>4</li>&ndash;&gt;-->
    <!--&lt;!&ndash;<li>5</li>&ndash;&gt;-->
    <!--</ul>-->
    <!--</div>-->
    <!--</div>-->
</div>
</body>
<script>
    var w=document.documentElement.clientWidth;
    var h=document.documentElement.clientHeight;



    var picScroll=document.querySelector('#picScroll');


    var content=document.getElementById('content');

    var itemId=decodeURI(window.location.href).split('?')[1];
    var a_token=decodeURI(window.location.href).split('?')[2];






    var currentPic=0;


    function changemsTodate(ms) {
        var format = function (time, format) {
            var t = new Date(time);
            var tf = function (i) {
                return (i < 10 ? '0' : '') + i
            };
            return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function (a) {
                switch (a) {
                    case 'yyyy':
                        return tf(t.getFullYear());
                        break;
                    case 'MM':
                        return tf(t.getMonth() + 1);
                        break;
                    case 'mm':
                        return tf(t.getMinutes());
                        break;
                    case 'dd':
                        return tf(t.getDate());
                        break;
                    case 'HH':
                        return tf(t.getHours());
                        break;
                    case 'ss':
                        return tf(t.getSeconds());
                        break;
                }
            })
        }
        if(ms == null){
            return "-";
        }
        var nDate = format(new Date(ms).getTime(), 'yyyy-MM');
        return nDate;
    }
    ajaxFunc();
    function ajaxFunc(){

        var xmlhttp = new XMLHttpRequest();
        xmlhttp.onreadystatechange = function () {
            if (xmlhttp.readyState == 4) {
                if (xmlhttp.status == 200) {
                    var getData = eval("(" + xmlhttp.responseText + ")");
                    console.log(getData);


                    content.innerHTML=getData.item.itemContent;

//                    var nameStr=getData.security.realname;
//                    var nameStr2=nameStr.charAt(0)+'**';



//                    var idcard=getData.security.identifyCard;
//                    var beRepaleced='';
//                    var showId='';
//
//                    if(idcard.length==18){
//                        beRepaleced=idcard.substring(10,16)
//                    }else if(idcard.length==15){
//                        beRepaleced=idcard.substring(7,13)
//                    }
//
//                    showId=idcard.replace(beRepaleced,'******');





                    //图片数组
                    var pictureList=[];
                    pictureList=getData.itemPicture.list;
                    var oTable=document.getElementById('loadList');
                    var otherList=document.getElementById('otherList');
                    var carCityList=document.getElementById('carCityList');
                    var carList=document.getElementById('carList');
                    var gurranteeList=document.getElementById('gurranteeList');
                    var moneyList=document.getElementById('moneyList');



                    if(pictureList.length==0){
                        $('.pic_info').hide()
                    }else{
                        $('.pic_info').show()
                    }

                    //学车宝
                    if(getData.item.itemType==1){
                        //内容
                        $('#itemType').html('关于学车宝');
                        $('#loadType').html('借款人信息');
                        $('.chedaibao').hide();
                        $('#xuechebao').show();
                        $('#cheshangbao').hide();


                        $('#loadTypeContent').html('<tr><td><p>姓<span style="opacity:0">空格</span>名</p>：</td><td>'+getData.trainingInformation.name+'</td></tr>' +
                                '<tr><td><p>学<span style="opacity:0">空格</span>校</p>：</td><td>'+getData.trainingInformation.school+'</td></tr>' +
                                '<tr><td><p>年<span style="opacity:0">空格</span>级</p>：</td><td>'+getData.trainingInformation.grade+'</td></tr>'+
                                '<tr><td><p>借款金额</p>：</td><td>'+(getData.item.itemAccount/10000).toFixed(2)+'万元'+'</td></tr>'+
                                '<tr><td><p>培训驾校</p>：</td><td>'+getData.trainingInformation.drivingSchool+'</td></tr>');


                        //图片展示

                        $('.tableTitle').css('display','none')

                        for(var i=0;i<pictureList.length;i++){
                            if(pictureList[i].itemPictureType<20){
                                $('#load').css('display','block');
                            }
                            if(pictureList[i].itemPictureType>20){
                                $('#other').css('display','block');
                            }
                        }


                        for(var i=0;i<pictureList.length;i++){
                            if(pictureList[i].itemPictureType==1){
                                var oTr1 = document.createElement('tr');
                                oTr1.innerHTML='<td><p>身  份  证</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="身份证：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr1);
                            }
                            if(pictureList[i].itemPictureType==2){
                                var oTr2 = document.createElement('tr');
                                oTr2.innerHTML='<td><p>学  生  证</p>：</td><td><span style="opacity: 0">审核情况</span></td><td data-text="学生证：" class="li" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr2);
                            }
                            if(pictureList[i].itemPictureType==3){
                                var oTr3 = document.createElement('tr');
                                oTr3.innerHTML='<td><p>申  请  表</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="申请表：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr3);
                            }
                            if(pictureList[i].itemPictureType==4){
                                var oTr4 = document.createElement('tr');
                                oTr4.innerHTML='<td><p>学  信  网</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="学信网：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr4);
                            }
                            if(pictureList[i].itemPictureType==21){
                                var oTr21 = document.createElement('tr');
                                oTr21.innerHTML='<td><p>分期合同</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="分期合同：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                otherList.appendChild(oTr21);
                            }
                            if(pictureList[i].itemPictureType==22){
                                var oTr22 = document.createElement('tr');
                                oTr22.innerHTML='<td><p>合<span style="opacity:0">空格</span>影</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="分期合同：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                otherList.appendChild(oTr22);
                            }
                            if(pictureList[i].itemPictureType==23){
                                var oTr23 = document.createElement('tr');
                                oTr23.innerHTML='<td><p>家<span style="opacity:0">空格</span>访</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="家访：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                otherList.appendChild(oTr23);
                            }
                            if(pictureList[i].itemPictureType==24){
                                var oTr24 = document.createElement('tr');
                                oTr24.innerHTML='<td><p>家<span style="opacity:0">空格</span>访</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="家访：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                otherList.appendChild(oTr24);
                            }
                            if(pictureList[i].itemPictureType==25){
                                var oTr25 = document.createElement('tr');
                                oTr25.innerHTML='<td><p>担  保  函</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="担保函：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                otherList.appendChild(oTr25);
                            }
                        }
                        picTab($('.li'),currentPic);
                    }
                    //车商宝
                    else if(getData.item.itemType==2){
                        $('.chedaibao').hide();
                        $('#cheshangbao').show();
                        $('#xuechebao').hide();
                        $('#loanUse').html(getData.item.itemLoanUse);

                        $('#itemType').html('关于车商宝');
                        $('#loadType').html('借款方信息');

                        $('#loadTypeContent').html('<tr><td><p>借  款  方</p>：</td><td>'+getData.security.realname+'</td></tr>' +
                                '<tr><td><p>注册资金</p>：</td><td>'+(getData.carMall.registerCapital/10000).toFixed(2)+'万元'+'</td></tr>' +
                                '<tr><td><p>注册地址</p>：</td><td>'+getData.carMall.address+'</td></tr>' +
                                '<tr><td><p>法<span style="opacity:0">空格</span>人</p>：</td><td>'+getData.carMall.juridicalPersonName+'</td></tr>' +
                                '<tr><td><p>身份证号</p>：</td><td>'+getData.carMall.juridicalPersonCard+'</td></tr>');

                        $('.tableTitle').css('display','none');





                        for(var i=0;i<pictureList.length;i++){
                            if(pictureList[i].itemPictureType<20){
                                $('#carCity').css('display','block');
                            }
                            if(pictureList[i].itemPictureType>20 && pictureList[i].itemPictureType<40){
                                $('#car').css('display','block');
                            }
                            if(pictureList[i].itemPictureType>40 && pictureList[i].itemPictureType<60){
                                $('#money').css('display','block');
                            }
                            if(pictureList[i].itemPictureType>60){
                                $('#gurrantee').css('display','block');
                            }
                        }




                        for(var i=0;i<pictureList.length;i++){

                            if(pictureList[i].itemPictureType==1){
                                var oTr1 = document.createElement('tr');
                                oTr1.innerHTML='<td><p>车城外观</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车城外观：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carCityList.appendChild(oTr1);
                            }
                            if(pictureList[i].itemPictureType==2){
                                var oTr2 = document.createElement('tr');
                                oTr2.innerHTML='<td><p>车城外观</p>：</td><td><span style="opacity: 0">审核情况</span></td><td data-text="车城外观：" class="li" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carCityList.appendChild(oTr2);
                            }
                            if(pictureList[i].itemPictureType==3){
                                var oTr3 = document.createElement('tr');
                                oTr3.innerHTML='<td><p>车城外观</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车城外观：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carCityList.appendChild(oTr3);
                            }
                            if(pictureList[i].itemPictureType==4){
                                var oTr4 = document.createElement('tr');
                                oTr4.innerHTML='<td><p>车城外观</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车城外观：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carCityList.appendChild(oTr4);
                            }
                            if(pictureList[i].itemPictureType==5){
                                var oTr5 = document.createElement('tr');
                                oTr5.innerHTML='<td><p>车城内景</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车城内景：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carCityList.appendChild(oTr5);
                            }
                            if(pictureList[i].itemPictureType==6){
                                var oTr6 = document.createElement('tr');
                                oTr6.innerHTML='<td><p>车城内景</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车城内景：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carCityList.appendChild(oTr6);
                            }
                            if(pictureList[i].itemPictureType==7){
                                var oTr7 = document.createElement('tr');
                                oTr7.innerHTML='<td><p>车城内景</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车城内景：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carCityList.appendChild(oTr7);
                            }
                            if(pictureList[i].itemPictureType==8){
                                var oTr8 = document.createElement('tr');
                                oTr8.innerHTML='<td><p>车城内景</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车城内景：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carCityList.appendChild(oTr8);
                            }

                            if(pictureList[i].itemPictureType==21){
                                var oTr21 = document.createElement('tr');
                                oTr21.innerHTML='<td><p>车辆外观</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车辆外观：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr21);
                            }
                            if(pictureList[i].itemPictureType==22){
                                var oTr22 = document.createElement('tr');
                                oTr22.innerHTML='<td><p>车辆外观</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车辆外观：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr22);
                            }
                            if(pictureList[i].itemPictureType==23){
                                var oTr23 = document.createElement('tr');
                                oTr23.innerHTML='<td><p>车辆外观</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车辆外观：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr23);
                            }
                            if(pictureList[i].itemPictureType==24){
                                var oTr24 = document.createElement('tr');
                                oTr24.innerHTML='<td><p>车辆外观</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车辆外观：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr24);
                            }
                            if(pictureList[i].itemPictureType==25){
                                var oTr25 = document.createElement('tr');
                                oTr25.innerHTML='<td><p>内<span style="opacity:0">空格</span>饰</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="内饰：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr25);
                            }
                            if(pictureList[i].itemPictureType==26){
                                var oTr26 = document.createElement('tr');
                                oTr26.innerHTML='<td><p>内<span style="opacity:0">空格</span>饰</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="内饰：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr26);
                            }
                            if(pictureList[i].itemPictureType==27){
                                var oTr27 = document.createElement('tr');
                                oTr27.innerHTML='<td><p>铭<span style="opacity:0">空格</span>牌</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="铭牌：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr27);
                            }
                            if(pictureList[i].itemPictureType==28){
                                var oTr28 = document.createElement('tr');
                                oTr28.innerHTML='<td><p>铭<span style="opacity:0">空格</span>牌</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="铭牌：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr28);
                            }
                            if(pictureList[i].itemPictureType==29){
                                var oTr29 = document.createElement('tr');
                                oTr29.innerHTML='<td><p>铭<span style="opacity:0">空格</span>牌</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="铭牌：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr29);
                            }
                            if(pictureList[i].itemPictureType==30){
                                var oTr30 = document.createElement('tr');
                                oTr30.innerHTML='<td><p>铭<span style="opacity:0">空格</span>牌</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="铭牌：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr30);
                            }

                            if(pictureList[i].itemPictureType==41){
                                var oTr41 = document.createElement('tr');
                                oTr41.innerHTML='<td><p>身份证号</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="身份证：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr41);
                            }
                            if(pictureList[i].itemPictureType==42){
                                var oTr42 = document.createElement('tr');
                                oTr42.innerHTML='<td><p>营业执照</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="营业执照：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr42);
                            }
                            if(pictureList[i].itemPictureType==43){
                                var oTr43 = document.createElement('tr');
                                oTr43.innerHTML='<td><p>房  产  证</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="房产证：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr43);
                            }
                            if(pictureList[i].itemPictureType==44){
                                var oTr44 = document.createElement('tr');
                                oTr44.innerHTML='<td><p>房  产  证</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="房产证：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr44);
                            }
                            if(pictureList[i].itemPictureType==45){
                                var oTr45 = document.createElement('tr');
                                oTr45.innerHTML='<td><p>房  产  证</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="房产证：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr45);
                            }

                            if(pictureList[i].itemPictureType==61){
                                var oTr61 = document.createElement('tr');
                                oTr61.innerHTML='<td><p>个人担保</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="个人担保：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                gurranteeList.appendChild(oTr61);
                            }
                            if(pictureList[i].itemPictureType==62){
                                var oTr62 = document.createElement('tr');
                                oTr62.innerHTML='<td><p>个人担保</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="个人担保：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                gurranteeList.appendChild(oTr62);
                            }
                            if(pictureList[i].itemPictureType==63){
                                var oTr63 = document.createElement('tr');
                                oTr63.innerHTML='<td><p>车城担保</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车城担保函：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                gurranteeList.appendChild(oTr63);
                            }
                            if(pictureList[i].itemPictureType==64){
                                var oTr64 = document.createElement('tr');
                                oTr64.innerHTML='<td><p>车城担保</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="车城担保函：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                gurranteeList.appendChild(oTr64);
                            }
                            if(pictureList[i].itemPictureType==65){
                                var oTr65 = document.createElement('tr');
                                oTr65.innerHTML='<td><p>担  保  方</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="担保方信息：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                gurranteeList.appendChild(oTr65);
                            }

                            picTab($('.li'),currentPic);

                        }


                    }
                    //车贷宝
                    else if(getData.item.itemType==3){
                        //借款人信息
                        $('.chedaibao').show();
                        $('#xuechebao').hide();
                        $('#cheshangbao').hide();
                        document.querySelector('#name').innerHTML=getData.security.realname;
                        document.querySelector('#idcard').innerHTML=getData.security.identifyCard;
                        document.querySelector('#province').innerHTML=getData.info.birthAddress;
                        document.querySelector('#city').innerHTML=getData.info.currentAddress;


                        $('#itemType').html('关于车贷宝');
                        $('#loadType').html('车辆信息');

                        if(!getData.itemLoan.isNewCar){
                            var str=getData.itemLoan.assessPrice;
                            var newstr=str.substring(0,str.length-1);
                            var assessPrice=(newstr/10000).toFixed(2)+'万元';
                            $('#loadTypeContent').html('<tr><td><p>品<span style="opacity:0">空格</span>牌</p>：</td><td>'+getData.itemLoan.carBrand+'</td></tr>' +
                                    '<tr><td><p>车<span style="opacity:0">空格</span>型</p>：</td><td>'+getData.itemLoan.carType+'</td></tr>'+
                                    '<tr><td><p>上牌时间</p>：</td><td>'+changemsTodate(getData.itemLoan.licensingTime)+'</td></tr>'+
                                    '<tr><td><p>公  里  数</p>：</td><td>'+getData.itemLoan.kilometers+'万公里'+'</td></tr>'+
                                    '<tr><td><p>评估价格</p>：</td><td>'+assessPrice+'</td></tr>');
//
                        }
                        else{
                            $('#loadTypeContent').html('<tr><td><p>品<span style="opacity:0">空格</span>牌</p>：</td><td>'+getData.itemLoan.carBrand+'</td></tr>' +
                                    '<tr><td><p>车<span style="opacity:0">空格</span>型</p>：</td><td>'+getData.itemLoan.carType+'</td></tr>'+
                                    '<tr><td><p>购买价格</p>：</td><td>'+(getData.itemLoan.buyPrice/10000).toFixed(2)+'万元'+'</td></tr>');
                        }



                        $('.tableTitle').css('display','none');


                        for(var i=0;i<pictureList.length;i++){
                            if(pictureList[i].itemPictureType<20){
                                $('#load').css('display','block');
                            }
                            if(pictureList[i].itemPictureType>20 && pictureList[i].itemPictureType<40){
                                $('#car').css('display','block');
                            }
                            if(pictureList[i].itemPictureType>40 && pictureList[i].itemPictureType<60){
                                $('#money').css('display','block');
                            }

                        }


                        for(var i=0;i<pictureList.length;i++){
                            if(pictureList[i].itemPictureType==1){
                                var oTr1 = document.createElement('tr');
                                oTr1.innerHTML='<td><p>身份证号</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="身 份 证：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr1);
                            }
                            if(pictureList[i].itemPictureType==2){
                                var oTr2 = document.createElement('tr');
                                oTr2.innerHTML='<td><p>户  口  本</p>：</td><td><span style="opacity: 0">审核情况</span></td><td data-text="户 口 本：" class="li" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr2);
                            }
                            if(pictureList[i].itemPictureType==3){
                                var oTr3 = document.createElement('tr');
                                oTr3.innerHTML='<td><p>结  婚  证</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="结 婚 证：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr3);
                            }
                            if(pictureList[i].itemPictureType==4){
                                var oTr4 = document.createElement('tr');
                                oTr4.innerHTML='<td><p>房  产  证</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="房 产 证：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr4);
                            }
                            if(pictureList[i].itemPictureType==5){
                                var oTr5 = document.createElement('tr');
                                oTr5.innerHTML='<td><p>收入证明</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="收入证明：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr5);
                            }
                            if(pictureList[i].itemPictureType==6){
                                var oTr6 = document.createElement('tr');
                                oTr6.innerHTML='<td><p>居住证明</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="居住证明：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                oTable.appendChild(oTr6);
                            }

                            if(pictureList[i].itemPictureType==21){
                                var oTr21 = document.createElement('tr');
                                oTr21.innerHTML='<td><p>外  观  前</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="外观前：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr21);
                            }
                            if(pictureList[i].itemPictureType==22){
                                var oTr22 = document.createElement('tr');
                                oTr22.innerHTML='<td><p>外  观  后</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="外观后：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr22);
                            }
                            if(pictureList[i].itemPictureType==23){
                                var oTr23 = document.createElement('tr');
                                oTr23.innerHTML='<td><p>里  程  表</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="里程表：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr23);
                            }
                            if(pictureList[i].itemPictureType==24){
                                var oTr24 = document.createElement('tr');
                                oTr24.innerHTML='<td><p>中  控  台</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="中控台：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr24);
                            }
                            if(pictureList[i].itemPictureType==25){
                                var oTr25 = document.createElement('tr');
                                oTr25.innerHTML='<td><p>铭<span style="opacity:0">空格</span>牌</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="铭牌：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr25);
                            }
                            if(pictureList[i].itemPictureType==26){
                                var oTr26 = document.createElement('tr');
                                oTr26.innerHTML='<td><p>人车合照</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="人车合照：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                carList.appendChild(oTr26);
                            }

                            if(pictureList[i].itemPictureType==41){
                                var oTr41 = document.createElement('tr');
                                oTr41.innerHTML='<td><p>购车合同</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="购车合同：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr41);
                            }
                            if(pictureList[i].itemPictureType==42){
                                var oTr42 = document.createElement('tr');
                                oTr42.innerHTML='<td><p>担  保  函</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="担保函：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr42);
                            }
                            if(pictureList[i].itemPictureType==43){
                                var oTr43 = document.createElement('tr');
                                oTr43.innerHTML='<td><p>委  托  书</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="委托书：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr43);
                            }
                            if(pictureList[i].itemPictureType==44){
                                var oTr44 = document.createElement('tr');
                                oTr44.innerHTML='<td><p>行  驶  证</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="行驶证：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr44);
                            }
                            if(pictureList[i].itemPictureType==45){
                                var oTr45 = document.createElement('tr');
                                oTr45.innerHTML='<td><p>发<span style="opacity:0">空格</span>票</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="发票：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr45);
                            }
                            if(pictureList[i].itemPictureType==46){
                                var oTr46 = document.createElement('tr');
                                oTr46.innerHTML='<td><p>履约保单</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="履约保单：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr46);
                            }
                            if(pictureList[i].itemPictureType==47){
                                var oTr47 = document.createElement('tr');
                                oTr47.innerHTML='<td><p>登记证书</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="登记证书：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr47);
                            }
                            if(pictureList[i].itemPictureType==48){
                                var oTr48 = document.createElement('tr');
                                oTr48.innerHTML='<td><p>登记证书</p>：</td><td><span style="opacity: 0">审核情况</span></td><td class="li" data-text="登记证书：" data-url="'+pictureList[i].picturePath+'">图片</td>';
                                moneyList.appendChild(oTr48);
                            }
                        }

                        picTab($('.li'),currentPic);


                    }
                    //图片预览

                    function picTab(allNum,currentNum) {

                        allNum.click(function () {
                            currentNum = $(this).index();
                            $('#photoBg').css('transform', 'scaleX(1)');

                            var ImgSrc = $(this).attr('data-url');
                            console.log(ImgSrc);

                            $('#photos').attr('src', ImgSrc);

                            $('#photosText').html($(this).attr('data-text'));
                        });

                        $('#closeButton').click(function () {
                            $('#photoBg').css('transform', 'scaleX(0)')
                        });


                        $('#bgPre').click(function () {
                            currentNum--;
                            if (currentNum < 0) {
                                currentNum = allNum.length - 1;
                            }
                            var ImgSrc = allNum.eq(currentNum).attr('data-url');
                            var imgText = allNum.eq(currentNum).attr('data-text');
                            $('#photos').attr('src', ImgSrc);
                            $('#photosText').html(imgText);
                        });

                        $('#bgNext').click(function () {
                            currentNum++;
                            if (currentNum > allNum.length - 1) {
                                currentNum = 0;
                            }
                            var ImgSrc = allNum.eq(currentNum).attr('data-url');
                            var imgText = allNum.eq(currentNum).attr('data-text');
                            $('#photos').attr('src', ImgSrc);
                            $('#photosText').html(imgText);
                        })
                    }





                    /*   var htmlStr='';

                     for(var i=0;i<getData.itemPicture.list.length;i++){
                     if(getData.itemPicture.list[i].picturePath!=''){
                     htmlStr+='<li style="background-image: url('+getData.itemPicture.list[i].picturePath+')"></li>'
                     }

                     }
                     picScroll.innerHTML=htmlStr;
                     var picScrollLi=picScroll.getElementsByTagName('li');
                     picScroll.style.width=114*picScrollLi.length+'px';*/

                }

            }
        };



        xmlhttp.open("POST","/mobile/item/documents", true);
        xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8");
        xmlhttp.setRequestHeader("x-access-token", a_token);
        xmlhttp.send('itemId=' +itemId+'&pageNum='+1+'&pageSize='+99999);
    }

</script>
</html>